virtualisation.fileSystems.<name>.label

Label of the device. This simply sets device to /dev/disk/by-label/${label}. Note that devices will not have a label unless they contain a filesystem which supports labels, such as ext4 or fat32.

Type
null or string (with check: non-empty)
Default
null
Example
"root-partition"
Declared
<nixpkgs/nixos/modules/tasks/filesystems.nix>